package com.cx;

public class test09 {
    public static void main(String[] args) {
        getMax();
    }

    public static void getMax() {
        int[] arr = {1,23,56,89,12,54};
        int max = arr[0];
        for (int i = 0; i < arr.length; i++) {
            if (max < arr[i]) {
                max = arr[i];
            }
        }
        System.out.println(max);
    }


}
